package io.demo.strategy;

/**
 * @author create by zhangpengfei at 2021/9/29 14:20
 */

public class ModelDuck extends Duck{

    public ModelDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("I'm a model duck!");
    }
}
